package com.suyx.job.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.suyx.job.dao.PhGoodsPriceInfoRepository;
import com.suyx.job.entity.PhGoodsPriceInfo;
import com.suyx.job.service.IPhGoodsPriceInfoService;
import com.suyx.job.service.base.impl.MyServiceImpl;

import lombok.extern.slf4j.Slf4j;

/**
 * @Auther: lanyanhua
 * @Date: 2018/10/18 0018 11:50
 * @Description:
 */
@Slf4j
@Service
public class PhGoodsPriceInfoServiceImpl extends MyServiceImpl<PhGoodsPriceInfo,Integer> implements IPhGoodsPriceInfoService {
	
	private PhGoodsPriceInfoRepository phGoodsPriceInfoRepository;

    @Autowired
    public PhGoodsPriceInfoServiceImpl(PhGoodsPriceInfoRepository repository) {
        super(repository);
        this.phGoodsPriceInfoRepository = repository;
    }
	
	@Override
	public  PhGoodsPriceInfo findByServerNameAndGoodsType(String serverName,String goodsType) {
		return phGoodsPriceInfoRepository.findByServerNameAndGoodsType(serverName, goodsType);
	}
}
